import axios from 'axios'
import React,{useEffect,useState} from 'react'
import 'antd/dist/reset.css';
// import { Button,Spin  } from 'antd';

function Test() {
  let [flag,setFlag] = useState(true)
  useEffect(()=>{
    axios.get("/api/captcha/api/math").then((res)=>{
      console.log(res);
      setFlag(false)
    })
  },[])
  return (
    <div>
      {/* <Button type="primary" onClick={()=>setFlag(false)}>Primary Button</Button>
      <Spin spinning={flag} />; */}
      {flag?'loading...':'OK'}
    </div>
  )
}

export default Test;
